


//用户进入9200
export interface IUserEnterZtReq{
    userId: string,   //用户id
    type:number       //玩法类型 文体1 足球2 民族3
}
export interface IUserEnterZtRes{
    code: number    //1 是成功
    uid:string,
    avator: string,
    score:number,
}
// end 

//场景广播9201
export interface IUserInfoZt{
    userId: string,
    avator: string,
    score : number,
}
export interface ITopic{
    tidx : number,
    //时间限制
    time : number,
    //题目id
    topicId : number,
}
export interface IZTScene{
    users:IUserInfoZt[], //用户数据
    topics:ITopic[],//题目数据
}
// end

//主题赛用户答题9202
export interface IUserAnswerZtReq {
    userId: string,
    topicId: number,
    choiceId: number,
    costTime: number,
    gameType:number
}
export interface IUserAnswerZtRes {
    code: number,
    uid: string,
    status: number,  //0是未答题 1是答对 2是答错
    tid: number,
    cid: number,
    userInfo: {
        userId: string,
        score: number
    }
}
//end

// 主题赛两个用户回答完毕广播正确答案 9203
export interface IStatus{
    uid: string,
    status: number, //0是未答题 1是答对 2是答错
    tid: number,
    cid: number,
    score:number,
}
export interface IBroadCorrectAnswerZt {
    correctCid: number,
    list:IStatus[]
}
//end

//广播下一题 9204
export interface IBroadNextTopicZt {

}
//end

//广播当前轮结算9205
export interface IEndInfoZt{
    userId: string,
    name : string,
    avator : string,
    score : number,
    time : number,
}
export interface IBroadCurEndZt{
    users:IEndInfoZt[]
}
//end

//这里就是开始游戏
//主题赛匹配到了的广播 9206
export interface IThemeMatchPPItem {
    userId: string;   //用户id
    name: string;  //用户名
    avator: string;   //头像
    rank: number, //全国排名，默认1
    dwType: number, //段位类型 DWTYPE 文体 1 足球 2 名族 3
    dwLvType: number, //段位类型 DWLVTYPE 1 2 3 4 5 6 7
    dwLv: number,//段位等级， 默认1
    winCount: number, //胜场 默认加1
} 
export interface IThemeMatchPPBroad{
    userList: IThemeMatchPPItem[]; 
    roomId: number
}
//end

//用户准备广播
export interface IThemeMatchStarReq{
    userId: string;
    type:number, //文体 1 足球 2 名族 3
}
export interface IThemeMatchStarRes{
    code:number,
    uid:string,
    status: number // 0是未准备 1是准备
}
// end 

//两个人都准备了开始游戏广播 9115
export interface IUserInfoZt{
    userId: string,
    avator: string,
    score : number,
}
export interface ITopic{
    tidx : number,
    //时间限制
    time : number,
    //题目id
    topicId : number,
}
export interface IThemeMatchStarBroad{
    // 1成功
    users: IUserInfoZt[],
    topics:ITopic[]
}
//end


//答题回顾
export interface IGetRecoreReq {
    userId: string
}
export interface IRecordZt{
    uid: string,
    status:number, //0是未答题 1是答对 2是答错
    tid: number,
    cid: number,
}
export interface IGetRecoreRes {
    list: IRecordZt[]
}
//end

//继续挑战
export interface IGetNextGroupReq{
    userId: string,
    gameType: number
}
export interface IGetNextGroupRes{
    code: number
}
// end

//段位结算
export interface IDwGameEnd{
    rewardType: number,
    rewardNum: number,
    dwLv: number,   //段位等级
    dwType: number, //段位类型
    gameType: number, //主题赛类型
}
//end


//领取段位奖励
export interface IGetDwRewardReq {
    userId: string,
    bei: number
}
export interface IGetDwRewardRes {
    //1 成功
    code: number
}
// end 


//用户答题超时
export interface IAnswerTimeOutReq{
    userId: string,
    tid: number,
}
export interface IAnswerTimeOutRes{
    //1 成功
    code: number
}
//end

//用户退出
export interface IUserExitZtReq {
    userId: string,
}
export interface IUserExitZtRes {
    //1 成功
    code: number
}
// end


